﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
using Magicodes.ExporterAndImporter.Core;
using System.ComponentModel.DataAnnotations;

namespace Admin.NET.Application;

/// <summary>
/// 工艺流程基础输入参数
/// </summary>
public class technologicalprocessBaseInput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    public virtual long? Id { get; set; }
    
    /// <summary>
    /// 标识
    /// </summary>
    public virtual long? technological_process_code { get; set; }
    
    /// <summary>
    /// 上级工序编号
    /// </summary>
    public virtual string? superior_process_code { get; set; }
    
    /// <summary>
    /// 上级工序
    /// </summary>
    public virtual string? superior_process { get; set; }
    
    /// <summary>
    /// 下级工序编号
    /// </summary>
    public virtual string? lower_level_process_code { get; set; }
    
    /// <summary>
    /// 下级工序
    /// </summary>
    public virtual string? lower_level_process { get; set; }
    
    /// <summary>
    /// 当前工序编号
    /// </summary>
    public virtual string? current_process_code { get; set; }
    
    /// <summary>
    /// 当前工序
    /// </summary>
    public virtual string? current_process { get; set; }
    
    /// <summary>
    /// 完成状态
    /// </summary>
    public virtual string? completion_status { get; set; }
    
    /// <summary>
    /// 锁定状态
    /// </summary>
    public virtual bool? locking_state { get; set; }
    
}

/// <summary>
/// 工艺流程分页查询输入参数
/// </summary>
public class PagetechnologicalprocessInput : BasePageInput
{
    /// <summary>
    /// 标识
    /// </summary>
    public long? technological_process_code { get; set; }
    
    /// <summary>
    /// 上级工序编号
    /// </summary>
    public string? superior_process_code { get; set; }
    
    /// <summary>
    /// 上级工序
    /// </summary>
    public string? superior_process { get; set; }
    
    /// <summary>
    /// 下级工序编号
    /// </summary>
    public string? lower_level_process_code { get; set; }
    
    /// <summary>
    /// 下级工序
    /// </summary>
    public string? lower_level_process { get; set; }
    
    /// <summary>
    /// 当前工序编号
    /// </summary>
    public string? current_process_code { get; set; }
    
    /// <summary>
    /// 当前工序
    /// </summary>
    public string? current_process { get; set; }
    
    /// <summary>
    /// 完成状态
    /// </summary>
    public string? completion_status { get; set; }
    
    /// <summary>
    /// 锁定状态
    /// </summary>
    public bool? locking_state { get; set; }
    
    /// <summary>
    /// 选中主键列表
    /// </summary>
     public List<long> SelectKeyList { get; set; }
}

/// <summary>
/// 工艺流程增加输入参数
/// </summary>
public class AddtechnologicalprocessInput
{
    /// <summary>
    /// 标识
    /// </summary>
    public long? technological_process_code { get; set; }
    
    /// <summary>
    /// 上级工序编号
    /// </summary>
    [MaxLength(50, ErrorMessage = "上级工序编号字符长度不能超过50")]
    public string? superior_process_code { get; set; }
    
    /// <summary>
    /// 上级工序
    /// </summary>
    [MaxLength(50, ErrorMessage = "上级工序字符长度不能超过50")]
    public string? superior_process { get; set; }
    
    /// <summary>
    /// 下级工序编号
    /// </summary>
    [MaxLength(50, ErrorMessage = "下级工序编号字符长度不能超过50")]
    public string? lower_level_process_code { get; set; }
    
    /// <summary>
    /// 下级工序
    /// </summary>
    [MaxLength(50, ErrorMessage = "下级工序字符长度不能超过50")]
    public string? lower_level_process { get; set; }
    
    /// <summary>
    /// 当前工序编号
    /// </summary>
    [MaxLength(50, ErrorMessage = "当前工序编号字符长度不能超过50")]
    public string? current_process_code { get; set; }
    
    /// <summary>
    /// 当前工序
    /// </summary>
    [MaxLength(50, ErrorMessage = "当前工序字符长度不能超过50")]
    public string? current_process { get; set; }
    
    /// <summary>
    /// 完成状态
    /// </summary>
    [MaxLength(32, ErrorMessage = "完成状态字符长度不能超过32")]
    public string? completion_status { get; set; }
    
    /// <summary>
    /// 锁定状态
    /// </summary>
    public bool? locking_state { get; set; }
    
}

/// <summary>
/// 工艺流程删除输入参数
/// </summary>
public class DeletetechnologicalprocessInput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    [Required(ErrorMessage = "主键Id不能为空")]
    public long? Id { get; set; }
    
}

/// <summary>
/// 工艺流程更新输入参数
/// </summary>
public class UpdatetechnologicalprocessInput
{
    /// <summary>
    /// 主键Id
    /// </summary>    
    [Required(ErrorMessage = "主键Id不能为空")]
    public long? Id { get; set; }
    
    /// <summary>
    /// 标识
    /// </summary>    
    public long? technological_process_code { get; set; }
    
    /// <summary>
    /// 上级工序编号
    /// </summary>    
    [MaxLength(50, ErrorMessage = "上级工序编号字符长度不能超过50")]
    public string? superior_process_code { get; set; }
    
    /// <summary>
    /// 上级工序
    /// </summary>    
    [MaxLength(50, ErrorMessage = "上级工序字符长度不能超过50")]
    public string? superior_process { get; set; }
    
    /// <summary>
    /// 下级工序编号
    /// </summary>    
    [MaxLength(50, ErrorMessage = "下级工序编号字符长度不能超过50")]
    public string? lower_level_process_code { get; set; }
    
    /// <summary>
    /// 下级工序
    /// </summary>    
    [MaxLength(50, ErrorMessage = "下级工序字符长度不能超过50")]
    public string? lower_level_process { get; set; }
    
    /// <summary>
    /// 当前工序编号
    /// </summary>    
    [MaxLength(50, ErrorMessage = "当前工序编号字符长度不能超过50")]
    public string? current_process_code { get; set; }
    
    /// <summary>
    /// 当前工序
    /// </summary>    
    [MaxLength(50, ErrorMessage = "当前工序字符长度不能超过50")]
    public string? current_process { get; set; }
    
    /// <summary>
    /// 完成状态
    /// </summary>    
    [MaxLength(32, ErrorMessage = "完成状态字符长度不能超过32")]
    public string? completion_status { get; set; }
    
    /// <summary>
    /// 锁定状态
    /// </summary>    
    public bool? locking_state { get; set; }
    
}

/// <summary>
/// 工艺流程主键查询输入参数
/// </summary>
public class QueryByIdtechnologicalprocessInput : DeletetechnologicalprocessInput
{
}

/// <summary>
/// 下拉数据输入参数
/// </summary>
public class DropdownDatatechnologicalprocessInput
{
    /// <summary>
    /// 是否用于分页查询
    /// </summary>
    public bool FromPage { get; set; }
}

/// <summary>
/// 工艺流程数据导入实体
/// </summary>
[ExcelImporter(SheetIndex = 1, IsOnlyErrorRows = true)]
public class ImporttechnologicalprocessInput : BaseImportInput
{
    /// <summary>
    /// 标识 关联值
    /// </summary>
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public long? technological_process_code { get; set; }
    
    /// <summary>
    /// 标识 文本
    /// </summary>
    [ImporterHeader(Name = "标识")]
    [ExporterHeader("标识", Format = "", Width = 25, IsBold = true)]
    public string technological_process_codeFkDisplayName { get; set; }
    
    /// <summary>
    /// 上级工序编号
    /// </summary>
    [ImporterHeader(Name = "上级工序编号")]
    [ExporterHeader("上级工序编号", Format = "", Width = 25, IsBold = true)]
    public string? superior_process_code { get; set; }
    
    /// <summary>
    /// 上级工序
    /// </summary>
    [ImporterHeader(Name = "上级工序")]
    [ExporterHeader("上级工序", Format = "", Width = 25, IsBold = true)]
    public string? superior_process { get; set; }
    
    /// <summary>
    /// 下级工序编号
    /// </summary>
    [ImporterHeader(Name = "下级工序编号")]
    [ExporterHeader("下级工序编号", Format = "", Width = 25, IsBold = true)]
    public string? lower_level_process_code { get; set; }
    
    /// <summary>
    /// 下级工序
    /// </summary>
    [ImporterHeader(Name = "下级工序")]
    [ExporterHeader("下级工序", Format = "", Width = 25, IsBold = true)]
    public string? lower_level_process { get; set; }
    
    /// <summary>
    /// 当前工序编号
    /// </summary>
    [ImporterHeader(Name = "当前工序编号")]
    [ExporterHeader("当前工序编号", Format = "", Width = 25, IsBold = true)]
    public string? current_process_code { get; set; }
    
    /// <summary>
    /// 当前工序
    /// </summary>
    [ImporterHeader(Name = "当前工序")]
    [ExporterHeader("当前工序", Format = "", Width = 25, IsBold = true)]
    public string? current_process { get; set; }
    
    /// <summary>
    /// 完成状态
    /// </summary>
    [ImporterHeader(Name = "完成状态")]
    [ExporterHeader("完成状态", Format = "", Width = 25, IsBold = true)]
    public string? completion_status { get; set; }
    
    /// <summary>
    /// 锁定状态
    /// </summary>
    [ImporterHeader(Name = "锁定状态")]
    [ExporterHeader("锁定状态", Format = "", Width = 25, IsBold = true)]
    public bool? locking_state { get; set; }
    
}
